'''
陈超依 19377189
现代程序设计第四次作业
'''

import sys
sys.path.append('E:/Py_Programs/week4/')
from GraphStat.NetworkBuilder import node,graph,stat
from GraphStat.Visualization import plotgraph,plotnodes

def main():
    LNodes = node.init_node('E:/Py_Programs/week4/newmovies.txt')
    #node.print_node(LNodes[0])
    #G = graph.init_graph('E:/Py_Programs/week4/newmovies.txt')
    #graph.print_graph(G)
    #print(stat.avg_degree(G))
    #print(stat.character_spare(LNodes, '1928 births'))
    #plotgraph.plot_graph(G)
    plotnodes.plot_character(LNodes, '1970 births')

if __name__ == '__main__':
    main()